package com.diyizu.youdianda.util;

public class UserID {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(String userId) {
        threadLocal.set(userId);
    }

    public static String getCurrentId() {
        System.out.println(threadLocal.get());
        return threadLocal.get();
    }

}
